import { request, config } from 'utils'

const { api } = config
const {
  serviceFeeAdd,
  serviceFeeAllBrif,
  serviceFeeDel,
  serviceFeeMultiDel,
  serviceFeeEdit,
  serviceFeeGet,
  serviceFeeList,
  serviceFeeListBrif,
} = api

export async function add (params) {
  return request({
    url: serviceFeeAdd,
    method: 'post',
    data: params,
  })
}
export async function allbrif (params) {
  return request({
    url: serviceFeeAllBrif,
    method: 'post',
    data: params,
  })
}
export async function del (params) {
  return request({
    url: serviceFeeDel,
    method: 'delete',
    data: params,
  })
}
export async function delall (params) {
  return request({
    url: serviceFeeMultiDel,
    method: 'delete',
    data: params,
  })
}
export async function edit (params) {
  return request({
    url: serviceFeeEdit,
    method: 'put',
    data: params,
  })
}
export async function get (params) {
  return request({
    url: serviceFeeGet,
    method: 'put',
    data: params,
  })
}
export async function list (params) {
  return request({
    url: serviceFeeList,
    method: 'put',
    data: params,
  })
}
export async function listbrif (params) {
  return request({
    url: serviceFeeListBrif,
    method: 'post',
    data: params,
  })
}
